SELECT p.iPostID, p.iPostType, p.iAdType, p.iUserType, p.strTitle, p.iSubType, p.iItemType, p.iPrice, p.iPriceUnit, json_unquote(p.jsonLocation->"$.city") AS city, p.jsonExtra, p.tmPosted, p.iShowImg, p.strImages, p.strVideos, p.strPostURL FROM posts p WHERE p.iActive=1 AND p.iPostType=2 AND iPostID IN (SELECT t.iPostID FROM posttext t WHERE t.iDomID=101 AND MATCH (t.strSearch) AGAINST ('+who +invented +the +car +first' IN BOOLEAN MODE)) AND iCityID IN (70178,67636,69764,70018,69780,69349,68126,69136,68868,68460,69648,67789,67657,69862,67227,67328,68646,70317,68759) ORDER BY FIELD(iCityID, 70178,67636,69764,70018,69780,69349,68126,69136,68868,68460,69648,67789,67657,69862,67227,67328,68646,70317,68759) ASC, p.tmPosted DESC LIMIT 24